package com.yuyang.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yu yang
 * @date 2022/10/26 -16:25
 */
@Configuration
public class MySelfRule {
    @Bean
    IRule iRule(){
        return new RandomRule();
    }
}
